package com.mgface.framework.entity;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(locations = { "classpath:/random-number.yml" }, prefix = "random", exceptionIfInvalid = true)
// 使用.yml时,属性名的值和冒号中间必须有空格,如name: Isea533正确,name:Isea533就是错的。
public class RandomEntity {
	private String secret;
	private int number;
	private long bignumber;
	@Min(value=0,message="值最小为0")
	@Max(value=10,message="值最大为10")
	private int lessthanten;
	private long inrange;
	private String devModel;

	public String getSecret() {
		return secret;
	}

	public void setSecret(String secret) {
		this.secret = secret;
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}

	public long getBignumber() {
		return bignumber;
	}

	public void setBignumber(long bignumber) {
		this.bignumber = bignumber;
	}

	public int getLessthanten() {
		return lessthanten;
	}

	public void setLessthanten(int lessthanten) {
		this.lessthanten = lessthanten;
	}

	public long getInrange() {
		return inrange;
	}

	public void setInrange(long inrange) {
		this.inrange = inrange;
	}

	public String getDevModel() {
		return devModel;
	}

	public void setDevModel(String devModel) {
		this.devModel = devModel;
	}
}
